<ion-header>
  <ion-toolbar color="primary">
    <ion-buttons>
      <ion-back-button default-href=""></ion-back-button>
      <ion-title>添加公文</ion-title>
    </ion-buttons>
  </ion-toolbar>
</ion-header>
<ion-content>
  <div class="container">
    <!-- <div style="margin: 10px 0px;">
            <ion-button size="small" (click)="SelecUnit()">选择单位</ion-button>
            <div class="note">123</div>
        </div> -->
    <div>
      <ion-button size="small" (click)="SelectPersonnel()"
        >选择人员
        <span style="margin-left: 5px;" *ngIf="select_people.length > 0">({{ select_people.length }})</span></ion-button
      >
    </div>
    <ul class="ul">
      <li *ngFor="let item of select_people">{{ item.realname }}</li>
    </ul>
    <div style="clear: both;"></div>
    <div style="margin: 10px 0px;">
      <ion-button size="small" (click)="AttUpload()">附件上传</ion-button>
      <div class="note">{{ this.from.url ? '已选择文件' : '未选择文件' }}</div>
    </div>
    <ion-item>
      <ion-label position="floating">标题</ion-label>
      <ion-input (ionChange)="ChangeTitle($event)"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label position="floating">内容</ion-label>
      <ion-textarea (ionChange)="ChangeContent($event)" rows="6"></ion-textarea>
    </ion-item>
    <ion-button (click)="Submit()" style="margin-top: 50px;" expand="full">发送</ion-button>
  </div>
</ion-content>
